home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 / (Vol 132) Jun 09 2011.iso / Games / sushi-king.swf / scripts / DefineButton2_457 / BUTTONCONDACTION on(keyPress Space).as next >
Encoding:
Text File  |  2011-06-09  |  797 b   |  32 lines

  1. on(keyPress "<Space>"){
  2.    press_ok = true;
  3.    if(this.char_mc.mc._currentframe == 1 || this.char_mc.mc._currentframe == 2)
  4.    {
  5.       fire_chooseNum = 2;
  6.       this.mouse_mc.gotoAndStop(2);
  7.       this.char_mc.mc.gotoAndStop(3);
  8.       this["interface"].fire_mc.gotoAndStop(2);
  9.    }
  10.    else if(this.char_mc.mc._currentframe == 3)
  11.    {
  12.       fire_chooseNum = 3;
  13.       this.mouse_mc.gotoAndStop(3);
  14.       this.char_mc.mc.gotoAndStop(4);
  15.       this["interface"].fire_mc.gotoAndStop(3);
  16.    }
  17.    else
  18.    {
  19.       fire_chooseNum = 1;
  20.       this.mouse_mc.gotoAndStop(1);
  21.       this["interface"].fire_mc.gotoAndStop(1);
  22.       if(fire_num == 2)
  23.       {
  24.          this.char_mc.mc.gotoAndStop(1);
  25.       }
  26.       else
  27.       {
  28.          this.char_mc.mc.gotoAndStop(2);
  29.       }
  30.    }
  31. }
  32.